import axios from "axios";

export const getWeather=(params:object)=>{
    return axios({
        url:"http://v1.yiketianqi.com/api",
        params:params
    })
}

export const getstudentstats=()=>{
    return axios ({
        url:'http://localhost:3002/v1.0/api/intelligentDetection/studentstats'
    })
}


export const getshuidian=()=>{
    return axios ({
        url:' http://localhost:3002/v1.0/api/intelligentDetection/dataTop'
    })
}

export const getdataBottom=()=>{
    return axios ({
        url:' http://localhost:3002/v1.0/api/intelligentDetection/dataBottom'
    })
}

// map
export const getmap=(data)=>{
    return axios (`https://geo.datav.aliyun.com/areas_v3/bound/${data}_full.json`)
}


export const getjiank=()=>{
    return axios ({
        url:' http://localhost:3002/v1.0/api/safeManage/monitoringSituation'
    })
}

export const getzhiban=()=>{
    return axios ({
        url:'http://localhost:3002/v1.0/api/safeManage/entranceGuardSituation'
    })
}

export const getmenjin=()=>{
    return axios({
        url:'http://localhost:3002/v1.0/api/safeManage/dutySituation'
    })
}

export const gettong=()=>{
    return axios({
        url:'http://localhost:3002/v1.0/api/deviceWorking/equipment'
    })
}

export const getchang=()=>{
    return axios({
        url:'http://localhost:3002/v1.0/api/deviceWorking/venueUse'
    })
}

export const getdian=()=>{
    return axios({
        url:'http://localhost:3002/v1.0/api/deviceWorking/electricityConsumption'
    })
}

export const getjing=()=>{
    return axios ({
        url:'http://localhost:3002/v1.0/api/deviceWorking/allPoliceData'
    })
}


export const getshe=()=>{
    return axios ({
        url:'http://localhost:3002/v1.0/api/deviceWorking/equipmentTesting'
    })
}


export const getcheng=()=>{
    return axios({
        url:'http://localhost:3002/v1.0/api/deviceWorking/venueUse'
    })
}

export const getchengshi=(data)=>{
    return axios({
        url:'http://localhost:3002/v1.0/api/student/stats/distribution',
        data
    })
}